<%-- 
    Document   : SingleNews
    Created on : 22-mag-2014, 11.49.21
    Author     : micheleprola
--%>
<%@page import="entity.News"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>SportingEventClub - News</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="CSS/BaseSite.css" />
        <link rel="stylesheet" type="text/css" href="CSS/vertical-ticker.css"/>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
        <script type="text/javascript" src="JQuery/jquery.totemticker.js"></script> 
        <link rel="shortcut icon" href= "Images/stadion-icon.png"/>
    </head>
    <body>         
        <div class="main">
            <div class="page">
                <div class="header">       
                    <div class="login">
                        <%@include file="login.jsp"%>
                    </div>
                    <div class="banner">
                    </div>
                    <div class="topmenu">
                        <%@include file="topmenu.jsp" %>
                    </div>
                </div>
                <div class="content">
                    <div class="content-in">
                        <div class="left-panel">
                            <div class="left-panel-in">
                                <% News nw = (News)request.getAttribute("news");
                                   String[] tit = nw.getTitoloNews().split(":");
                                   String[] data = nw.getDataNews().toString().split("-");%>
                                   <br/><table width="100%"><tr><td height="50"><p style="font-size: 18px;"> <%=tit[1]%> </p></td><td style="text-align: right;"> <%=data[2] + "-" + data[1] + "-" + data[0]%></td></tr><tr><td colspan="2"><p style="text-align:justify; font-size: 15px;"> <%=nw.getDescNews()%> </p></td></tr></table>
                            </div>
                        </div>
                        <div class="right-panel">
                            <div class="right-panel-in">
                                <jsp:include page="/GeneralController">
                                    <jsp:param name="submit" value="right-content"/>
                                    <jsp:param name="op" value="newsbox"/>
                                </jsp:include>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="footer">
                    <%@include file="footer.jsp"%> 
                </div>
            </div>
        </div> 
    </body>
</html>

